#pragma once

#include "../umlmodel_global.h"

#include <memory>
#include <vector>

#include "TemplateParameter.h"

using std::make_shared;
using std::shared_ptr;
using std::vector;

namespace uml {
class Operation;

/// <summary>
/// OperationTemplateParameter
/// An OperationTemplateParameter exposes an Operation as a formal parameter for a
/// template.
/// </summary>
class UMLMODEL_EXPORT OperationTemplateParameter : public TemplateParameter {

public: // Constructors and destructors
    explicit OperationTemplateParameter(const QString& umlType="uml::OperationTemplateParameter");

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

public: // Properties
    /// <summary>
    /// parameteredElement getter
    /// The Operation exposed by this OperationTemplateParameter.
    /// </summary>
    shared_ptr<Operation> parameteredElement() const;

    /// <summary>
    /// parameteredElement setter
    /// The Operation exposed by this OperationTemplateParameter.
    /// </summary>
    void setParameteredElement(shared_ptr<Operation> value);

private: // Fields
    /// <summary>
    /// parameteredElement
    /// The Operation exposed by this OperationTemplateParameter.
    /// </summary>
    shared_ptr<Operation> parameteredElement_;

};

} // namespace uml
